import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
    history: createWebHashHistory(process.env.BASE_URL),
    routes: [
        // { path: '/index', component: () => import('./dev/index.vue')}
    ]
})

// 让滚动条回到顶部
router.afterEach((to, from, next) => {
    document.body.scrollTop = 0;
    document.documentElement.scrollTop = 0;
    window.scrollTo(0, 0);
});

export default router;